package com.zhanghu.hibernate.dto;

import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.Data;

/**
 * @Author: zhanghu
 * @Description:
 * @Date: Create in 11:34 2020/1/8
 * @modified by:
 */


public class UserDTO {
    private final String username;
    private final String name;

    public UserDTO(String username, String name) {
        this.username = username;
        this.name = name;
    }

    public String getUsername() {
        return this.username;
    }

    public String getName() {
        return this.name;
    }
}
